package com.umpay.privi.model.sys;

import java.io.Serializable;
import java.sql.Timestamp;
import com.umpay.privi.util.ObjectUtil;
import com.umpay.privi.util.StringUtil;

/** 
 * desc:用户组
 * <p>创建人：Ding Zhe 创建日期：Apr 19, 2013 </p>
 * @version V1.0  
 */
public class UserGroup implements Serializable {

	private static final long serialVersionUID = 1L;
			
	/**
	 * 用户组ID
	 */
	public static final String USERGROUPID = "userGroupId";
		
	//用户组编号 ;	
	private Integer userGroupId;
	//用户组名称 ;	
	private String userGroupName;
	//上级用户组编号 ;	
	private Integer parentId;
	//用户组描述 ;	
	private String description;
	//是否叶子节点(0:是;1:不是);	
	private Short isLeaf;
	//1：运营平台，2：U付企业版;	
	private Short sysId;
	//创建者的用户ID。0表示为系统创建;	
	private String creator;
	//修改人用户编号 ;	
	private String modUser;
	//入库时间 ;	
	private Timestamp inTime;
	//修改时间 ;	
	private Timestamp modTime;
	//0:可用，1:删除 ;	
	private Short flag;
	
	public void trim(){
		StringUtil.trimObjectFields(this);
	}
	
	@Override
	public String toString() {
		return ObjectUtil.object2LogStr(this);
	}
			
	public Integer getUserGroupId(){
		return userGroupId;
	}
			
	public String getUserGroupName(){
		return userGroupName;
	}
			
	public Integer getParentId(){
		return parentId;
	}
			
	public String getDescription(){
		return description;
	}
			
	public Short getIsLeaf(){
		return isLeaf;
	}
			
	public Short getSysId(){
		return sysId;
	}
			
	public String getCreator(){
		return creator;
	}
			
	public String getModUser(){
		return modUser;
	}
			
	public Timestamp getInTime(){
		return inTime;
	}
			
	public Timestamp getModTime(){
		return modTime;
	}
			
	public Short getFlag(){
		return flag;
	}
		
				
	public void setUserGroupId(Integer userGroupId){
		this.userGroupId = userGroupId;
	}
		
	public void setUserGroupName(String userGroupName){
		this.userGroupName = userGroupName;
	}
		
	public void setParentId(Integer parentId){
		this.parentId = parentId;
	}
		
	public void setDescription(String description){
		this.description = description;
	}
		
	public void setIsLeaf(Short isLeaf){
		this.isLeaf = isLeaf;
	}
		
	public void setSysId(Short sysId){
		this.sysId = sysId;
	}
		
	public void setCreator(String creator){
		this.creator = creator;
	}
		
	public void setModUser(String modUser){
		this.modUser = modUser;
	}
		
	public void setInTime(Timestamp inTime){
		this.inTime = inTime;
	}
		
	public void setModTime(Timestamp modTime){
		this.modTime = modTime;
	}
		
	public void setFlag(Short flag){
		this.flag = flag;
	}
}